<?php


namespace App\Http\Wpt\Teacher\V1_0\Controllers;


use App\Logic\ExamLogic;
use App\Utils\Singleton;
use Illuminate\Http\Request;
use Illuminate\Http\Response;


class ExamController
{
    use Singleton;
    public function examAction(){
        return ExamLogic::getInstance()->exam();
    }

    public function typeNumAction(Request $request,Response $response){
        return ExamLogic::getInstance()->typeNum($request,$response);
    }

    public function getNumAction(Request $request,Response $response){
        return ExamLogic::getInstance()->getNum($request,$response);
    }

    public function addExamAction(Request $request,Response $response){
        return ExamLogic::getInstance()->addExam($request,$response);
    }

    public function addExaminfoAction(Request $request,Response $response){
        return ExamLogic::getInstance()->addExaminfo($request,$response);
    }

    public function stuScoreAction(Request $request,Response $response){
        return ExamLogic::getInstance()->stuScore($request,$response);
    }

    public function getScoreAction(Request $request,Response $response){
        return ExamLogic::getInstance()->getScore($request,$response);
    }

    public function editScoreAction(Request $request,Response $response){
        return ExamLogic::getInstance()->editScore($request,$response);
    }

    public function shareAction(Request $request,Response $response){
        return ExamLogic::getInstance()->share($request,$response);
    }
    public function getExamAction(Request $request,Response $response){
        return ExamLogic::getInstance()->getExam($request,$response);
    }
    public function listExamAction(Request $request,Response $response){
        return ExamLogic::getInstance()->listExam($request,$response);
    }
    public function miAction(Request $request){
        return ExamLogic::getInstance()->mi($request);
    }
}